<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<link href="/resource/css/bootstrap.css" rel="stylesheet">
<script type="text/javascript" src="/resource/js/jquery-3.2.1.js"></script>
<script type="text/javascript" src="/resource/js/bootstrap.js"></script>
</head>
<body>
<table class="table">
	<tr>
		<td>购物车id</td>
		<td>用户id</td>
		<td>商品id</td>
		<td>商品名称</td>
		<td>单价</td>
		<td>数量</td>
		<td>购物时间</td>
	</tr>
	<c:forEach items="${info.list}" var="s">
		<tr>
			<td>${s.cid }</td>
			<td>${s.uid }</td>
			<td>${s.gid }</td>
			<td>${s.gname }</td>
			<td>${s.price }</td>
			<td>${s.num}</td>
			<td><fmt:formatDate value="${s.time}" pattern="yyyy-MM-dd HH:mm:dd"/></td>
		</tr>
	</c:forEach>
</table>
<jsp:include page="/WEB-INF/view/pages.jsp"></jsp:include>
</body>
<script type="text/javascript">
	function goPage(pageNum){
		location.href="/list?pageNum="+pageNum;
	}
</script>
</html>